package com.ssm.mapper;

import com.ssm.entity.UserEntity;

import java.util.List;

//与数据交互
public interface UserMapper {

    //查询单个用户
    UserEntity selectUser(long id);

    //增加用户
    void addUser(UserEntity userEntity);

    //删除用户
    void delUser(long id);

    //修改用户
    void updateUser(UserEntity userEntity);

    //用户列表
    List<UserEntity> userList();
}

